16 bit Assembly
Home Site Map Instruction Index
The CMPS instruction is used to compare the contents of memory addresses at SI and DI. This instruction is typically used with a CX counter and either REP or LOOP to repeat the task mutltiple times.
This command has 1 part the Instruction.
Assembly Sample | Description | 16 bit Machine Code |
---|---|---|
CMPSB | ; 8 bit version Compare and find non-matching bytes in SI and DI | A6 |
CMPSW | ; 16 bit version Compare and find non-matching Words in SI and DI | A7 |